package biz

const Ok = 200

var (
	DBError               = NewError(10000, "数据库错误")
	AlreadyRegister       = NewError(10100, "用户已注册")
	UserNameAndPwdError   = NewError(10101, "用户名或密码错误")
	TokenError            = NewError(10102, "生成token失败")
	UserNotExist          = NewError(10103, "用户不存在")
	ListNotFound          = NewError(10104, "请求列表不存在")
	RedisError            = NewError(10105, "redis错误")
	RecordNotFound        = NewError(10106, "记录不存在")
	UpdateRecordError     = NewError(10107, "更新记录失败")
	DeleteRecordNotFound  = NewError(10108, "删除记录失败")
	UserIdEqualTargetId   = NewError(-2, "用户id不能与目标id相同")
	InvalidUserID         = NewError(-1, "目标用户不存在")
	RequestParamError     = NewError(10109, "参数错误")
	InternalServerError   = NewError(10110, "服务器内部错误")
	RepeatAddFriendError  = NewError(10111, "重复添加好友")
	AddFriendError        = NewError(10112, "添加好友失败")
	RelationAlreadyExists = NewError(10113, "关系已经存在")
	AlreadyCommunity      = NewError(10113, "当前群记录已存在")
	CreateCommunityError  = NewError(10114, "群记录创建失败")
	CommunityNotFound     = NewError(10115, "群名不存在")
	RelationCreateFailed  = NewError(1002, "无法加入群组，请重试")
)
